package org.blog.service;

import java.util.List;

import org.blog.helper.Result;
import org.blog.model.ModelBanIP;
import org.blog.model.ModelPassport;

public interface BanIPService {

	/**
	 * 添加封禁ip
	 * 
	 * @param t
	 * @param passport
	 * @return
	 */
	public Result<?> addBanIP(ModelBanIP t, ModelPassport passport);

	/**
	 * 修改封禁ip
	 * 
	 * @param t
	 * @param passport
	 * @return
	 */
	public Result<?> modifyBanIP(ModelBanIP t, ModelPassport passport);

	/**
	 * 根据主键获取封禁ip
	 * 
	 * @param t
	 * @param passport
	 * @return
	 */
	public Result<ModelBanIP> getBanIP(ModelBanIP t, ModelPassport passport);

	/**
	 * 获取封禁ip的列表
	 * 
	 * @param passport
	 * @return
	 */
	public Result<List<ModelBanIP>> getBanIPList(ModelPassport passport);
	
	/**
	 * 根据禁止类型和是否有效获取数据
	 * @param passport
	 * @return
	 */
	public Result<List<ModelBanIP>> getBanIPSelectList(ModelBanIP t,ModelPassport passport);
}
